home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / applet / AppletProps$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.2 KB  |  35 lines

  1. package sun.applet;
  2.  
  3. import java.io.File;
  4. import java.io.FileOutputStream;
  5. import java.io.IOException;
  6. import java.security.PrivilegedExceptionAction;
  7. import java.util.Properties;
  8.  
  9. final class AppletProps$2 implements PrivilegedExceptionAction {
  10.    // $FF: synthetic field
  11.    final Properties val$props;
  12.    // $FF: synthetic field
  13.    final AppletProps this$0;
  14.  
  15.    AppletProps$2(AppletProps var1, Properties var2) {
  16.       this.this$0 = var1;
  17.       this.val$props = var2;
  18.    }
  19.  
  20.    public Object run() throws IOException {
  21.       File var1 = Main.theUserPropertiesFile;
  22.       FileOutputStream var2 = new FileOutputStream(var1);
  23.       Properties var3 = new Properties();
  24.  
  25.       for(int var4 = 0; var4 < Main.avDefaultUserProps.length; ++var4) {
  26.          String var5 = Main.avDefaultUserProps[var4][0];
  27.          var3.setProperty(var5, this.val$props.getProperty(var5));
  28.       }
  29.  
  30.       var3.store(var2, AppletProps.access$000().getMessage("prop.store"));
  31.       var2.close();
  32.       return null;
  33.    }
  34. }
  35.